<?php
require_once 'Translator/Controller.php';

class IndexController extends Translator_Controller
{
    public function indexAction()
    {
    	require_once 'models/LanguageModel.php';
    	$languageModel = new LanguageModel();
    	
    	if($this->user->isTranslator() && !$this->user->isAdministrator()) {
    		$this->view->mylanguages = $languageModel->fetchLanguagesByUser($this->user->id);
    	}
    	
    	$this->view->languages = $languageModel->fetchLanguages(true);
    }


}

